#include <stdio.h>
int main() {
    int c;
    scanf("%d",&c);
    printf("%.2f", ((float)c*9/5)+32);
    return 0;
}